package com.zhanggm.student.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum Gender {
    nan(0,"男"),nv(1,"女");

    @EnumValue
    private Integer value;
    @JsonValue
    private String name;

    Gender(Integer value,String name) {
        this.name = name;
        this.value = value;
    }

}
